.xpath-finder-hover {
    outline: 2px dashed #ff0000 !important;
    outline-offset: 1px !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

.xpath-finder-selected {
    outline: 2px solid #00ff00 !important;
    outline-offset: 1px !important;
    background-color: rgba(0, 255, 0, 0.1) !important;
}

.xpath-preview-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.xpath-preview-window {
    width: 300px;
    max-height: 400px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

.xpath-preview-header {
    padding: 8px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xpath-preview-title {
    font-weight: bold;
    color: #333;
}

.xpath-preview-tabs {
    display: flex;
    gap: 8px;
}

.xpath-preview-tab {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.xpath-preview-tab.active {
    background-color: #4285f4;
    color: white;
}

.xpath-preview-content {
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.xpath-preview-close {
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.xpath-tree-container {
    width: 400px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.xpath-tree {
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.xpath-tree-item {
    padding: 4px 0;
    cursor: pointer;
    user-select: none;
}

.xpath-tree-item:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.xpath-tree-item.selected {
    background-color: rgba(66, 133, 244, 0.2);
}

.xpath-tree-indent {
    margin-left: 20px;
}

.xpath-tree-expand {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    color: #666;
}

.xpath-tree-tag {
    color: #881391;
}

.xpath-tree-attr {
    color: #994500;
}

.xpath-tree-text {
    color: #1a1aa6;
    font-style: italic;
}

#xpath-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-left: 1px solid #ddd;
}

#xpath-preview {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.preview-section {
    margin-bottom: 8px;
}

.preview-label {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.preview-content {
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.4;
}

#html-content {
    background-color: #1e1e1e;
    color: #d4d4d4;
}

#html-content pre {
    margin: 0;
    white-space: pre-wrap;
}

#xpath-tree {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.tree-item {
    padding: 4px 0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.tree-item:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.tree-item.selected {
    background-color: rgba(66, 133, 244, 0.2);
}

.tree-indent {
    margin-left: 24px;
    border-left: 1px solid #ddd;
    padding-left: 4px;
}

.tree-expand {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    color: #666;
    margin-right: 4px;
}

.tree-tag {
    color: #881391;
}

.tree-attr {
    color: #994500;
    margin: 0 4px;
}

.tree-text {
    color: #1a1aa6;
    font-style: italic;
    margin-left: 8px;
}

.tree-item.highlight {
    background-color: rgba(66, 133, 244, 0.15);
    border-left: 2px solid #4285f4;
}